package com.huiHang.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商家员工表
 * </p>
 *
 * @author author
 * @since 2024-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("business_user")
@Schema(name = "BusinessUser对象", description="商家员工表")
public class BusinessUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(name =  "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(name =  "名称")
    private String name;

    @Schema(name =  "手机号")
    private String mobile;

    @Schema(name =  "密码")
    private String password;

    @Schema(name =  "商家id")
    private Long businessId;

    @Schema(name =  "性别0女1男")
    private Integer sex;

    @Schema(name =  "用户头像路径")
    private String headImgUrl;

    @Schema(name =  "是否启用0启用1禁用")
    private Integer state;

    @Schema(name =  "角色")
    private String role;

    @Schema(name =  "添加人姓名")
    private String createName;

    @Schema(name =  "创建人")
    private Long createUser;

    @Schema(name =  "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(name =  "最后更新人")
    private Long updateUser;

    @Schema(name =  "最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(name =  "1:正常;0:锁定;-1:删除;2:休假")
    private Integer isDelete;

    @Schema(name =  "备注")
    private String remark;


}
